package com.zhdl.hardware_contact.hardware_param.repository;

import com.project.common.repository.BaseRepository;
import com.zhdl.hardware_contact.hardware_param.entity.HardwareDictionary;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface HardwareDictionaryDao extends BaseRepository<HardwareDictionary, Integer> {

    @Query("SELECT hd FROM HardwareDictionary hd WHERE hd.workplaceId = :workplaceId")
    public List<HardwareDictionary> HardwareInfoByworkplaceId(@Param("workplaceId") Integer workplaceId);


    public HardwareDictionary findHardwareDictionaryByName(String Name);


}
